package com.server;import com.msgChannel.SendMsgCilent;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.amqp.rabbit.annotation.RabbitHandler;import org.springframework.amqp.rabbit.annotation.RabbitListener;import org.springframework.stereotype.Component;/** * Description: * Company:HK * author: Sam * date:  2016/11/15 18:09 *///@Component//@RabbitListener(queues = "msgQueue")public class Receiver {    private static Logger logger = LoggerFactory.getLogger(Receiver.class);//    @RabbitHandler    public void process(String msg){        logger.info("Receiver : " + msg);    }}